package com.egg.auth.model.response.web;

import com.egg.common.core.model.response.BaseResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author east
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "角色信息")
public class RoleInfo extends BaseResponse {


    @ApiModelProperty(value = "角色ID")
    private Long id;

    @ApiModelProperty(value = "角色编码")
    private String authCode;

    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "启用状态")
    private Boolean enabled;

    @ApiModelProperty(value = "数据范围")
    private String dataScope;

    @ApiModelProperty(value = "自定义数据权限范围")
    private List<Long> deptId;

    @ApiModelProperty(value = "角色排序")
    private Integer sort;


}
